<template>
<div class="assistant-bar">
  <div class="assistant-logo">
    <img src="/favicon.ico" alt width="36px" height="36px"/>
  </div>
  <div class="content">
    <div class="content-box">
      {{ text }}
    </div>
  </div>
</div>
</template>

<script setup>
defineProps({
  text: {
    type: String,
    default: ''
  }
})
</script>

<style scoped>
.assistant-bar {
  align-items: flex-start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  left: 3px;
  margin: 16px auto 0;
  max-width: 896px;
  min-width: 320px;
  position: relative;
  width: calc(100% - 180px);
}
.assistant-logo {
  align-items: center;
  background: #3ca0be no-repeat;
  background-size: cover;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  left: -48px;
  overflow: hidden;
  position: absolute;
  top: 12px;
  width: 36px;
  border: 2px solid #2c3e50;
}
.content {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 36px;
  padding: 16px 20px;
  position: relative;
  width: calc(100% - 42px);
  will-change: opacity, transform;
}
.content-box {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
}
</style>